package com.zb.admin.mapper;


import com.zb.model.dto.admin.ChannelDTO;
import com.zb.model.pojo.admin.AdChannel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdChannelMapper {
    List<AdChannel> pageList(ChannelDTO dto);

    Integer insert(AdChannel channel);

    Integer update(AdChannel adChannel);


    @Delete("delete from ad_channel where id = #{id}")
    Integer delete(Integer id);

    @Select("select * from ad_channel where id = #{id}")
    AdChannel getById(Integer id);
}
